import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/page/home/home.vue'
import Trip from '@/page/trip/Trip'
import Login from '@/page/login/Login'
import Search from '@/page/search/search'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'Home',
      component: Home,
      alias: '/' || '/home'
    },
    {
      path:'/trip',
      name:'Trip',
      component:Trip
    },
    {
      path:'/login',
      name:'Login',
      component:Login
    },
    {
      path:'/search',
      name:'Search',
      component:Search
    }
  ]
})
